package kt.hkit.androidcomplete01.chapter06;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch06MainActivity extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch06_main);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		
		switch(v.getId()){
		case R.id.ch06_btn01:
			intent = new Intent(this, CodeLayout.class);
			break;
		case R.id.ch06_btn02:
			intent = new Intent(this, InflationEx.class);
			break;
		case R.id.ch06_btn03:
			intent = new Intent(this, InflationEx2.class);
			break;
		case R.id.ch06_btn04:
			intent = new Intent(this, InflationEx3.class);
			break;
		case R.id.ch06_btn05:
			intent = new Intent(this, InflationEx4.class);
			break;
		case R.id.ch06_btn06:
			intent = new Intent(this, LayoutParameterEx.class);
			break;
		case R.id.ch06_btn07:
			intent = new Intent(this, SetParameterEx.class);
			break;
		}
		
		startActivity(intent);
	}
}
